package com.news.sentiment.service.impl;

import com.news.sentiment.mapper.UserMapper;
import com.news.sentiment.pojo.User;
import com.news.sentiment.service.UserService;
import com.news.sentiment.vo.UserVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User findByUsernameAndPwd(UserVo userVo) {
        return userMapper.findByUsernameAndPwd(userVo);
    }

    @Override
    public Integer updateProfile(UserVo userVo) {
        return userMapper.updateProfile(userVo);
    }

    @Override
    public User findByUserid(String userid) {
        return userMapper.findByUserid(userid);
    }
}
